package com.ruoyi.pingan.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 平安分账订单分账撤退
 * </p>
 *
 * @author wangy
 * @since 2025-06-19
 */
@Data
@TableName("sxo_safety_sep_acc_revoke")
@Schema(name = "SxoSafetySepAccRevoke对象", description = "平安分账订单分账撤退")
public class SxoSafetySepAccRevoke implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "订单id")
    @TableField("order_id")
    private String orderId;

    @Schema(description = "订单号")
    @TableField("order_no")
    private String orderNo;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private String shopId;

    @Schema(description = "店铺名称")
    @TableField("shop_name")
    private String shopName;

    @Schema(description = "分账id")
    @TableField("sep_acc_id")
    private String sepAccId;


   /* @Schema(description = "分账明细id")
    @TableField("sep_acc_detail_id")
    private String sepAccDetailId;*/

    @Schema(description = "原支付子订单号")
    @TableField("old_pay_sub_order_no")
    private String oldPaySubOrderNo;

    @Schema(description = "原支付订单所属日期")
    @TableField("old_pay_order_date")
    private String oldPayOrderDate;

    @Schema(description = "分账转出子账户")
    @TableField("out_sub_acct_no")
    private String outSubAcctNo;

    @Schema(description = "总交易金额")
    @TableField("tran_total_amt")
    private String tranTotalAmt;

    @Schema(description = "订单数量")
    @TableField("orders_count")
    private String ordersCount;

    @Schema(description = "分账撤退状态（-1:分账撤退失败；0：分账撤退成功,1分账撤销中）")
    @TableField("sep_status")
    private Integer sepStatus;

    @Schema(description = "撤销分账时间")
    @TableField("sep_revoke_time")
    private String sepRevokeTime;

    @Schema(description = "撤销分账查询成功时间")
    @TableField("sep_revoke_succ_time")
    private String sepRevokeSuccTime;

    @Schema(description = "交易流水号")
    @TableField("cnsmr_seq_no")
    private String cnsmrSeqNo;

    @Schema(description = "电商见证宝系统生成的流水号")
    @TableField("jzb_accept_seq_no")
    private String jzbAcceptSeqNo;

    @Schema(description = "订单售后主键ID")
    @TableField("sale_id")
    private String saleId;

    @Schema(description = "状态（0正常, 1删除）")
    @TableField("status")
    private Integer status;

    @Schema(description = "错误信息")
    @TableField("error_msg")
    private String errorMsg;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private String addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private String updTime;
}
